Page({
  data:{

  },

  GoTeacher(e){
    var id = parseInt(e.currentTarget.dataset.id)
    var teacherinfo = this.data.teacher[id]
    wx.navigateTo({
      url: '/pages/teachers-team/introduce/introduce?teacher_info=' + JSON.stringify(teacherinfo)
    })
  },

  onLoad(options){
    var teacher = JSON.parse(options.search_result)
    this.setData({teacher,search:options.search})
  }
})